package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Label implements Serializable {
    private String labno;

    private String eno;

    private String mtno;

    private String labname;

    private static final long serialVersionUID = 1L;

    public String getLabno() {
        return labno;
    }

    public void setLabno(String labno) {
        this.labno = labno;
    }

    public String getEno() {
        return eno;
    }

    public void setEno(String eno) {
        this.eno = eno;
    }

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getLabname() {
        return labname;
    }

    public void setLabname(String labname) {
        this.labname = labname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Label other = (Label) that;
        return (this.getLabno() == null ? other.getLabno() == null : this.getLabno().equals(other.getLabno()))
            && (this.getEno() == null ? other.getEno() == null : this.getEno().equals(other.getEno()))
            && (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getLabname() == null ? other.getLabname() == null : this.getLabname().equals(other.getLabname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLabno() == null) ? 0 : getLabno().hashCode());
        result = prime * result + ((getEno() == null) ? 0 : getEno().hashCode());
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getLabname() == null) ? 0 : getLabname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", labno=").append(labno);
        sb.append(", eno=").append(eno);
        sb.append(", mtno=").append(mtno);
        sb.append(", labname=").append(labname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}